package com.handu.luna.core.domain.goods;

import java.math.BigDecimal;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Transient;

import com.handu.luna.core.domain.BasePersistentDomain;

@Entity
public class SKU  extends BasePersistentDomain<SKURepository>{
	
	private long goodsId;//商品ID
	private String goodsAttributeName;//属性名称
	private String goodsAttributeValues;//属性ID
	private String sku_goodsSN;//商品尺寸
	private BigDecimal goodsPrice;//价格
	private long goodsNum;//数量
	private String shapeCode;//条形码
	
	@Transient
	private List<SKU> skulist;

	public SKU() {}

	public SKU(long goodsId, String goodsAttributeName,
			String goodsAttributeValues, String sku_goodsSN,
			BigDecimal goodsPrice, long goodsNum, String shapeCode) {
		super();
		this.goodsId = goodsId;
		this.goodsAttributeName = goodsAttributeName;
		this.goodsAttributeValues = goodsAttributeValues;
		this.sku_goodsSN = sku_goodsSN;
		this.goodsPrice = goodsPrice;
		this.goodsNum = goodsNum;
		this.shapeCode = shapeCode;
	}


	public List<SKU> getSkulist() {
		return skulist;
	}

	public void setSkulist(List<SKU> skulist) {
		this.skulist = skulist;
	}

	public long getGoodsId() {
		return goodsId;
	}



	public void setGoodsId(long goodsId) {
		this.goodsId = goodsId;
	}



	public String getGoodsAttributeName() {
		return goodsAttributeName;
	}



	public void setGoodsAttributeName(String goodsAttributeName) {
		this.goodsAttributeName = goodsAttributeName;
	}



	public String getGoodsAttributeValues() {
		return goodsAttributeValues;
	}



	public void setGoodsAttributeValues(String goodsAttributeValues) {
		this.goodsAttributeValues = goodsAttributeValues;
	}



	public String getSku_goodsSN() {
		return sku_goodsSN;
	}



	public void setSku_goodsSN(String sku_goodsSN) {
		this.sku_goodsSN = sku_goodsSN;
	}



	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}



	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public long getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(long goodsNum) {
		this.goodsNum = goodsNum;
	}

	public String getShapeCode() {
		return shapeCode;
	}



	public void setShapeCode(String shapeCode) {
		this.shapeCode = shapeCode;
	}


	
	
	
	
}